package com.cqcet.wenchuang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cqcet.wenchuang.entity.AddressBook;

public interface AddressBookService extends IService<AddressBook> {
    /**
     * 根据用户id获取默认地址
     *
     * @param userId
     * @return
     */
    AddressBook getDefaultAddress(Long userId);

    /**
     * 保存为默认地址
     *
     * @param addressBookId
     */
    void saveAsDefault(Long addressBookId);
}
